// ====================CardContainerBase====================

class CardContainerBase extends PIXI.Container {
    constructor(opts) {
        super();
        this._opts = opts;
        this.initialize();
    }

    initialize() {
    }

    update() {
        if (!this.worldVisible) return;
        for (const child of this.children) {
            if (!!child.update) child.update();
        }
        this.updateContainer();
    }

    updateContainer(){}

    show() {
        this.visible = true;
    }

    hide() {
        this.visible = false;
    }

    move(x, y) {
        this.x = x;
        this.y = y;
    }
}